from django.conf.urls import patterns, include, url

#import from your views file the view functions you created
from projectWebsite.views import home, register, classList

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()
'''
When the user attempts to visit your domain/regex the site will check for the
url pattern here. Django will look here to find the function that renders the
page.

Takes a series of regular expression for URL and the name
Django removes the / from the front of the url
By default any request to a URL that doesn't match and doesn't end with a slash will
be redireceted to the same URL with a trailing slash

Most Django developers prefer all urls end with a slash
Set APPEND_SLASH to true and add a trailing slash to each URLpattern
See APPENDIX D
'''

urlpatterns = patterns('',('^$', home) ,('^register/$', register),
                       ('^list/$', classList),
    # Examples:
    # url(r'^$', 'projectWebsite.views.home', name='home'),
    # url(r'^projectWebsite/', include('projectWebsite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
    # url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # url(r'^admin/', include(admin.site.urls)),
)
